package com.zcl.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcl.dao.Help;
import com.zcl.mapper.HelpMapper;

@Service
public class HelpService {
	@Autowired
	HelpMapper helpMapper;
	/*
	 * 查询事故
	 */
	public List<Map<String, String>> helpQuery(){
		return helpMapper.helpQuery();
	}
	
	/*
	 * 查询事故详情
	 */
	public Help helpSuveryInfo(Map<String, String> map) {
		return helpMapper.helpSuveryInfo(map);
	}
	
	/*
	 * 事故全文搜索
	 */
	public List<Map<String, String>> helpGlobalQuery(Map<String, String> map) {
		return helpMapper.helpGlobalQuery(map);
	}
	
	/*
	 * 添加事故信息
	 */
	public void helpAdd(Map<String, String> map) {
		helpMapper.helpAdd(map);
	}
	
	/*
	 * 删除事故信息
	 */
	public void helpDelete(Map<String, String> map) {
		helpMapper.helpDelete(map);
	}

	/*
	 * 事故信息修改
	 */
	public void helpRevise(Map<String, String> map) {
		helpMapper.helpRevise(map);
	}

	/*
	 * 事故高级搜索
	 */
	public List<Map<String, String>> helpAdvancedQuery(Map<String, String> map) {
		return helpMapper.helpAdvancedQuery(map);
	}
}
